package com.snailcatmall.www.serversocket.netty.heartbeatTools;

import com.snailcatmall.www.serversocket.netty.threadTools.NettyServerHeartbeatDetection;
import com.snailcatmall.www.serversocket.tools.GlobalStaticClass;
import io.netty.channel.*;

/**
 * @see NettyFromServerHeartbeatDetection 服务端的心跳
 */
public class NettyFromServerHeartbeatDetection extends ChannelHandlerAdapter {

    @Override
    public void channelRegistered(ChannelHandlerContext ctx) {
        GlobalStaticClass.AddClientMap(ctx);
        GlobalStaticClass.threadPoolExecutor.submit(new NettyServerHeartbeatDetection());
    }
}
